package com.itheima.tlias.model.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author byzhao
 * @created 2024-04-08 18:20:00
 * @describtion 分页响应结果集
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1701021629143340724L;
    /**
     * 总记录数
     */
    private Long total;
    /**
     *  一页数据
     */
    private List<T> rows;

}
